.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

@theme-color: #55B761;
@font-color: #505050;
@small-font: 1.2rem;
@font-family: 'Comic Sans MS';
// 封装第2、3部分绿色按钮

.button-style {
    padding: 0.4rem 1.5rem;
    color: white;
    font-size: @small-font;
    border-radius: 5px;
    background-color: @theme-color;
}

/* 导航栏部分 */
header {
    width: 100%;
    border-bottom: 1px solid rgb(231, 231, 231);
    background-color: white;
    z-index: 10;

    .navbar {
        .navbar-nav {
            margin: 0px auto;

            .nav-link {
                color: @font-color;
                font-size: @small-font;

                @media (min-width:992px) and (max-width:1200px) {
                    font-size: 1rem;
                }

                &:hover {
                    color: @theme-color;
                }

                &.active {
                    color: @theme-color;
                }
            }
        }

        .btn-signUp,
        .btn-logIn {
            @media (min-width:992px) and (max-width:1200px) {
                font-size: 0.8rem;
                padding: 0px 8px;
                border-width: 1px;
            }

            border-width: 2px;
            line-height: 30px;
            padding: 0px 20px;
        }

        .btn-signUp {
            color: @font-color;
            border-color: @font-color;

            &:hover {
                border-color: @theme-color;
                color: white;
                background-color: @theme-color;
            }
        }

        .btn-logIn {
            border-color: @theme-color;

            &:hover {
                background-color: @theme-color;
            }
        }
    }

}

#ad-ons {
    width: 100%;
    color: @font-color;

    .home-link {
        padding-top: 6rem;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 3.8rem;
    }

    .second-txt {
        font-size: 2.2rem;
    }

    .third-txt {
        font-size: 1.3rem;
    }

    @media (max-width:576px) {
        h2 {
            font-size: 3.5rem;
        }

        .second-txt {
            font-size: 1.8rem;
        }

        .third-txt {
            font-size: 1rem;
        }
    }
}

#soft {
    padding-bottom: 5rem;

    li {
        margin-bottom: 4rem;

        img {
            width: 3.6rem;
        }

        .media-body {
            color: @font-color;

            h5 {
                font-size: 1rem;
                margin-bottom: 0.3rem;
            }

            p {
                font-size: 0.8rem;
            }
        }

        &:hover {
            .media-body {
                color: green;
            }
        }
    }
}

footer {

    // 字体样式
    .letterfont {
        color: rgb(238, 238, 238);
        text-decoration: none;
        font-weight: lighter;
        font-size: 0.8rem;
    }


    .skew-bg {
        height: 550px;
        transform: skewY(-16deg);
        background-color: #65688B;
        position: relative;
        z-index: 0;
        margin-top: 6rem;
    }



    .bg {
        margin-top: -20rem;
        background-color: #65688B;
        position: relative;
        z-index: 1;

        .top {
            p {
                color: white;
                font-weight: 600;
            }

            li {
                line-height: 1.5rem;

                a {
                    .letterfont();
                }
            }
        }



        i {
            width: 100%;
            height: 4px;
            background-color: #8386A2;
        }

        .middle {
            li {
                a {
                    color: white;
                }
            }
        }

        .bottom {
            margin-top: 6rem;

            li {
                .letterfont();

                a {
                    color: @theme-color;
                }

                .btn {
                    color: rgb(44, 44, 44);
                    background-color: white;
                    padding: 0.1rem 0.3rem;
                }
            }
        }
    }

    .server {
        display: flex;
        width: 4rem;
        height: 4rem;
        right: 10px;
        bottom: 12px;
        background-color: white;
        z-index: 20;
        justify-content: center;
        align-items: center;
        cursor: pointer;

        p {
            margin-bottom: 0;
            width: 2.5rem;
            height: 2.5rem;
            text-align: center;
            background: url('../images/客服.png') no-repeat center/cover;

            span {
                margin-top: 1rem;
                width: 0.3rem;
                height: 0.3rem;
                background-color: white;
                display: none;
                // display: inline-block;
                transition: 1s;
                position: relative;

            }

            @keyframes dump {
                0% {
                    top: 0;
                }

                50% {
                    top: -0.5rem;
                }

                100% {
                    top: 0;
                }
            }

            &:hover {
                background: url('../images/信息.png') no-repeat center/cover;
                transition: all 0.3s;

                span {
                    display: inline-block;

                    &.circle1 {
                        animation: dump 0.7s;
                    }

                    &.circle2 {
                        animation: dump 0.7s 0.1s;
                    }

                    &.circle3 {
                        animation: dump 0.7s 0.1s;
                    }
                }
            }
        }
    }

    .dialog {
        right: 15px;
        bottom: 12px;
        width: 310px;
        height: 95vh;
        background-color: white;
        border-radius: 10px;
        z-index: 30;
        display: none;

        .header {
            box-shadow: 0px 3px 10px -5px rgba(0, 0, 0, 0.363);

            .top {
                line-height: 3rem;
                padding: 0 0.8rem 1rem;
                border-bottom: 1px solid rgb(231, 231, 231);

                .left {
                    cursor: pointer;

                    &>i {
                        display: inline-block;
                        width: 5px;
                        height: 5px;
                        border-radius: 50%;
                        background-color: @font-color;
                    }
                }


                .closes {
                    display: block;
                    width: 20px;
                    height: 20px;
                    cursor: pointer;

                    i {
                        margin-top: 10px;
                        display: block;
                        width: 100%;
                        height: 2px;
                        background-color: @font-color;
                    }
                }
            }

            .bot {
                .iconfont {
                    font-size: 1.5rem;
                    color: #bebebe;
                    cursor: pointer;

                    &.zan {
                        font-size: 1.9rem;
                        position: relative;
                        top: 4px;
                    }
                }
            }

        }

        .middle-con {
            width: 100%;
            height: 66%;
            background-color: #E9EEF4;
            overflow: auto;

            li {
                margin-bottom: 1rem;
            }

            .head {
                width: 20px;
                height: 20px;
                border-radius: 50%;
                margin-right: 0.5rem;
                background: url('../images/server.jfif') no-repeat center/cover;

            }

            .media-body {
                span {
                    font-weight: lighter;
                    font-size: 1rem;
                }

                p {
                    line-height: 18px;
                    border-radius: 10px;
                    padding: 12px 9px;
                    color: #6b6b6b;
                }
            }

            .you {

                .tip,
                .active {
                    font-weight: lighter;
                    font-size: 0.8rem;
                }

                .content {
                    display: inline-block;
                    margin-left: auto;
                    padding: 11px;
                    line-height: 22px;
                    border-radius: 10px;
                    color: white;
                    background-color: #4384F5;
                    word-break: break-all;
                }

                @keyframes show {
                    0% {
                        opacity: 0;
                    }

                    100% {
                        opacity: 1;
                    }
                }

                .active {
                    opacity: 0;
                    animation: show 0.5s 1s forwards;
                }

            }
        }

        .bottom {
            input {
                width: 90%;
                outline: none;
            }

            svg {
                transform: scale(1.5);
                cursor: pointer;
            }
        }
    }


    @media (min-width:1200px) {
        .bg {
            margin-top: -17rem;
        }
    }

    @media (max-width:768px) {
        .bg {
            margin-top: -23rem;
        }
    }

    @media (max-width:576px) {
        .skew-bg {
            display: none;
        }

        .bg {
            margin-top: 0rem;
            padding-top: 3rem;

            .top {
                p {
                    font-size: 1.5rem;
                }
            }

            .middle {
                li {
                    line-height: 2.5rem;

                    a {
                        font-size: 1.5rem;
                    }
                }
            }

            .bottom {
                width: 70%;
                margin: 3rem auto 0;

                li {
                    margin-bottom: 2rem;
                    padding-bottom: 0;
                }
            }
        }

    }
}